import Toast from '@vant/weapp/toast/toast';
import Ajax from "../../../../utils/ajax"
import Util from "../../../../utils/util"
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
     tmp:{
      slogan:'',
      describe:'',
     }
  },

  created(){
     console.log("组件进入时渲染", app.globalData.tmp  );
     this.setData({ tmp: app.globalData.tmp,    });
   },
  methods: {
    remarkInputAction(e) { 
      console.log(e.detail);
      let value = e.detail;
      let id = e.currentTarget.dataset.id;
      var tmp =  this.data.tmp 
      tmp[id] = value
      this.setData({ tmp }) 
      app.globalData.tmp[id] =  value
    },
  }
})
